package com.yuejian.neusoft.yuejian_24.service;


import com.yuejian.neusoft.yuejian_24.javaBean.Activity;
import com.yuejian.neusoft.yuejian_24.javaBean.Collected;
import com.yuejian.neusoft.yuejian_24.javaBean.Success;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface ActivityService {
    @GET("index.php/Act/activitylist")
    Call<List<Activity>> getactivitylist();

    @GET("index.php/Act/getacdetail")
    Call<Activity> getacdetail(
            @Query("act_id")String act_id
    );
    @GET("index.php/Act/follow")
    Call<Success> follow(
            @Query("act_id")String act_id,
            @Query("uid")String uid,
            @Query("type")String type
    );

    @GET("index.php/Act/isCollected")
    Call<Collected> isCollected(
            @Query("act_id")String act_id,
            @Query("uid")String uid,
            @Query("type")String type
    );
}
